package com.sunchangming.stmdb.helper;

import com.sunchangming.stmdb.recman.RecCacheEntry;

/**
 * State information for cache entries.
 */
public class CacheEntry {
	private Long _key;
	private RecCacheEntry _value;

	private CacheEntry _previous;
	private CacheEntry _next;

	CacheEntry(Long key, RecCacheEntry value) {
		_key = key;
		_value = value;
	}

	Long getKey() {
		return _key;
	}

	void setKey(Long obj) {
		_key = obj;
	}

	public RecCacheEntry getValue() {
		return _value;
	}

	void setValue(RecCacheEntry obj) {
		_value = obj;
	}

	CacheEntry getPrevious() {
		return _previous;
	}

	void setPrevious(CacheEntry entry) {
		_previous = entry;
	}

	CacheEntry getNext() {
		return _next;
	}

	void setNext(CacheEntry entry) {
		_next = entry;
	}
}